package Tool;

import java.util.Random;

public abstract class AbstractVehicle {

	public static int  getVehicle(){
		Random r = new Random();
		int suiji = r.nextInt(10)+1;
		if(suiji<5){
			return Tuola.how();
		}else if (suiji ==9||suiji==10){
			return Plane.how();
		}
		 return TRain.how();
	}
}
